export default {
  data() {
    return {
    }
  },

  watch: {
    
  },

  computed: {
    // 用于判断是否登陆
    isLogin() {
      const user = JSON.parse(localStorage.getItem('userInfo'));
      if (user && Object.keys(user).length) {
        return true;
      }
      return false;
    }
  },

  methods: {
    gomvDetail(event, id) {
      console.log(event)
     
      const to = {
        name: 'videodetail',
        query: {
          mid: ""
        }
      };
      if (event) {
        const { mvid, aid } = event.target.dataset;
        if (aid) return;
        to.query.mid = mvid;
        this.$router.push(to);
      } else {
        to.query.mid = id;
        this.$router.push(to);
      }
    }
  }
}